﻿using System;
using System.ComponentModel;
using System.Web.UI;

namespace PortalCurriculo.WebUI.UserControls.Basico
{
    public partial class Panel : UserControl
    {
        [Browsable(false)]
        [DefaultValue(null)]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public virtual ITemplate Buttons { get; set; }

        [Browsable(false)]
        [DefaultValue(null)]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public virtual ITemplate Content { get; set; }

        protected override void OnLoad(EventArgs e)
        {
            Buttons.InstantiateIn(divBotoes);
            Content.InstantiateIn(divRepeticao);

            new Curriculo.Curriculo().ConfigurarDivRepeticao(divRepeticao, divBotoes);

            base.OnLoad(e);
        }
    }
}